<template>
  <div>
    <h1>This is an info page</h1>
   
    <button type="button" @click="add()">添加</button>
  </div>
</template>
<script>
import store from '@/store/index'; //@表示src目录
export default {
  name: "info",  
  store,
  methods: {
    add () {
     store.commit('increase')
    }
  }
};
</script>
